package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户单词学习状态表单对象
 *
 * @author youlaitech
 * @since 2025-06-24 15:50
 */
@Getter
@Setter
@Schema(description = "用户单词学习状态表单对象")
public class UserWordStatusForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户单词学习状态ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "单词ID")
    private Long wordId;

    @Schema(description = "所属单元名称")
    @Size(max=128, message="所属单元名称长度不能超过128个字符")
    private String unitName;

    @Schema(description = "所属教材ID")
    private Long programId;

    @Schema(description = "所属系列ID")
    private Long seriesId;

    @Schema(description = "是否已学（0否，1是）")
    private Integer learned;

    @Schema(description = "学习次数")
    private Integer studyCount;

    @Schema(description = "正确次数")
    private Integer correctCount;

    @Schema(description = "错误次数")
    private Integer errorCount;

    @Schema(description = "最后学习时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastStudyAt;


}
